package cn.stylefeng.guns.modular.gridsystem.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.modular.gridsystem.entity.BizUploadScore;
import cn.stylefeng.guns.modular.gridsystem.model.param.BizUploadScoreParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 网关上报分数表 服务类
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
public interface BizUploadScoreService extends IService<BizUploadScore> {

    /**
     * 分页查询网关上报分数表
     *
     * @author ssy
     * @date 2021/09/14 11:47
     */
    PageResult<BizUploadScore> page(BizUploadScoreParam bizUploadScoreParam);

    /**
     * 查询所有网关上报分数表
     *
     * @author ssy
     * @date 2021/09/14 11:47
     */
    List<BizUploadScore> list(BizUploadScoreParam bizUploadScoreParam);

    /**
     * 添加网关上报分数表
     *
     * @author ssy
     * @date 2021/09/14 11:47
     */
    boolean add(BizUploadScoreParam bizUploadScoreParam);

    /**
     * 删除网关上报分数表
     *
     * @author ssy
     * @date 2021/09/14 11:47
     */
    void delete(BizUploadScoreParam bizUploadScoreParam);

    /**
     * 编辑网关上报分数表
     *
     * @author ssy
     * @date 2021/09/14 11:47
     */
    void edit(BizUploadScoreParam bizUploadScoreParam);

    /**
     * 查看详情网关上报分数表
     *
     * @author ssy
     * @date 2021/09/14 11:47
     */
    BizUploadScore detail(BizUploadScoreParam bizUploadScoreParam);


    PageResult<Map<String,Object>> pageList(BizUploadScoreParam bizUploadScoreParam);

    List<BizUploadScore> getUploadScoreList(BizUploadScoreParam bizUploadScoreParam);


    /**
     * 根据开始时间、结束时间查询数据
     *
     * @author rdp
     * @date 2022/12/30 11:53
     */
    List<BizUploadScore> getScoreListByTime(Integer deviceId,String startTime, String endTime);

    List<BizUploadScore> getScoresLately(Integer deviceId);
}
